import request from '@/utils/request'

export default {
  // 商品品牌列表
  listBrand: request.post('/api/product/brand/brandList'),
  addBrand: request.post('/api/product/brand/addBrand'),
    updateBrand: request.post('/api/product/brand/updateBrand'),
  delBrandById: request.get('/api/product/brand/delBrandById'),

  // 商品单位列表
  listUnit: request.post('/api/product/unit/unitList'),
  addUnit: request.post('/api/product/unit/addUnit'),
    updateUnit: request.post('/api/product/unit/updateUnit'),
  delUnitById: request.get('/api/product/unit/delUnitById'),

  // 商品规格列表
  listAttribute: request.post('/api/product/attribute/attributeList'),
  addAttribute: request.post('/api/product/attribute/addAttribute'),
  delAttributeById: request.get('/api/product/attribute/delAttributeById'),
  updateAttribute: request.post('/api/product/attribute/updateAttribute'),

  // 商品分类列表
  categoryTree: request.get('/api/product/category/getCategoryTree'),
  delCatById: request.get('/api/product/category/delCatById'),
  addCat: request.post('/api/product/category/addCat'),
  editCat: request.post('/api/product/category/editCat'),

  // 商品列表
  productList: request.get('/api/product/spu/getSpuList'),
  operationSpu: request.get('/api/product/spu/operationSpu'),
  saveSpu: request.post('/api/product/spu/saveSpu'),
  updateSpu: request.post('/api/product/spu/updateSpu'),
  spuDetail: request.get('/api/product/spu/getSpuDetailBySpuId')

}

